<?php
namespace app\common\model\user;

use app\common\model\BaseModel;

class UserInfomation extends BaseModel
{
    protected $pk = 'id';
    /**
     * 关联用户表
     */
    public function user()
    {
        return $this->belongsTo('app\\common\\model\\user\\User', 'user_id', 'user_id');
    }

    public function add($data,$user)
    {

    }

    public function details($id)
    {
        return $this->find($id);
    }
}